package com.tsing.service.impl;

import com.tsing.common.framwork.mapper.CommonDao;
import com.tsing.mapper.CollectMapper;
import com.tsing.mapper.impl.CollectMapperImpl;
import com.tsing.service.CollectService;

/**
 * @auth 卢孝宇
 * @date 2023/12/14 9:24
 */
public class CollectServiceImpl extends CommonDao implements CollectService {
    private CollectMapper collectMapper = new CollectMapperImpl();
    @Override
    public Integer add(Integer userId, Integer postId) {
        return collectMapper.add(userId, postId);
    }

    @Override
    public Integer delete(Integer userId, Integer postId) {
        return collectMapper.delete(userId, postId);
    }
}
